﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ScrablerShell
{
    static class Program
    {
        public static string ScriptsFolder;
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new GUi());
        }
        public static void FindScriptsFolder(string username)
        {

            try
            {
                string tmppath, driveletter, tfold;
                if (username != null)
                {
                    tfold = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                    //string[] tmpproffolder;
                    //     tmppath = "C:\\Documents and Settings\\" + Environment.UserName + "\\Application Data\\ScrablerService \\" + "Scripts";

                    //    tmppath += "\\" + tmpproffolder;
                    //ScriptsFolder = tfold + " \\ScrablerService\\" + "Scripts";
                    ScriptsFolder = "C:\\Documents and Settings\\" + username + "\\Application Data\\"+Application.ProductName  +"\\Scripts";
                    // MessageBox.Show(ScriptsFolder);
                }
                ;

            }
            catch (Exception ex)
            {

                //Program.errorreporting(ex);
                //return null;
            }

        }
    }
}
